.container1 {
  background-color: #060431;
  display: flex;
  flex-direction: column;
}
.uni-page-head {
  height: 0px !important;
}
.uni-placeholder {
  height: 0px !important;
}
.header {
  z-index: 10;

  .search-box {
    height: 100rpx;
    padding: 20rpx 40rpx;
    display: flex;
    align-items: center;
    justify-content: center;

    .search-input {
      height: 60rpx;
      width: 100%;
      background-color: #f7f7f7;
      font-size: $font-size-base;
      border-radius: 50rem !important;
      display: flex;
      justify-content: center;
      align-items: center;

      .search-icon {
        width: 30rpx;
        height: 30rpx;
        margin-right: 10rpx;
      }
    }
  }

  .center {
    min-height: 50rpx;
    padding: 10rpx 40rpx;
    display: flex;
    flex-direction: column;

    .store {
      display: flex;
      align-items: center;
      justify-content: space-between;

      .title {
        flex: 1;
        display: flex;
        align-items: center;
        font-size: $font-size-lg;
        color: $text-color-base;
        font-weight: bold;
        overflow: hidden;

        .address {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        .left-icon {
          flex-shrink: 0;
          width: 30rpx;
          height: 30rpx;
          margin: 10rpx;
        }

        .right-icon {
          flex-shrink: 0;
          width: 40rpx;
          height: 40rpx;
        }
      }

      .buttons {
        display: flex;
        align-items: stretch;
        background-color: #686868;
        border-radius: 50rem !important;
        padding: 4rpx 15rpx;
        border: 2rpx solid #eaeaea;
        color: white;
        font-size: 0.6rem;

        .button {
          height: 100%;
          width: 50%;
          border-radius: 50rem !important;
          border: 0 !important;
          font-size: $font-size-sm !important;
          line-height: 2.4 !important;

          &.active {
            background-color: #343434;
            color: #ffffff !important;
            transition: all 0.3s;
          }
        }
      }
    }

    .location {
      font-size: $font-size-base;
      color: $text-color-assist;
    }
  }

  .notices {
    height: 80rpx;
    display: flex;
    align-items: stretch;
    padding: 10rpx 40rpx;
    font-size: $font-size-sm;
    color: $text-color-assist;
    box-shadow: $box-shadow;

    .swiper {
      height: 100%;
      flex: 1;

      .swiper-item {
        width: 100%;
        height: 100%;
        display: flex;
        overflow: hidden;
        align-items: center;

        .image {
          width: 30rpx;
          height: 30rpx;
          flex-shrink: 0;
          margin-right: 10rpx;
        }

        .content {
          flex: 1;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }
    }

    .more {
      padding-left: 20rpx;
      display: flex;
      align-items: center;

      .text-share {
        background-color: #aaa;
        color: white;
        height: 40rpx;
        padding: 6rpx 20rpx;
        border-radius: 70rpx;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.6rem;
      }

      .down-icon {
        margin-left: 10rpx;
        width: 40rpx;
        height: 40rpx;
      }
    }
  }
}

.main {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.menu-bar {
  width: 170rpx;
  height: calc(100vh - 250rpx);
  flex-shrink: 0;
  background-color: #f6f6f6;
  padding-bottom: 162rpx;

  .wrapper {
    height: auto;

    .menu-item {
      min-height: 162rpx;

      padding: 30rpx 0rpx;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      font-size: $font-size-base;
      color: $text-color-assist;
      overflow: hidden;

      gap: 5rpx;

      &:nth-last-child(1) {
        margin-bottom: 100rpx;
      }

      .image {
        width: 60rpx;
        height: 60rpx;
        border-radius: 50%;
      }

      .title {
        width: 140rpx;
        text-align: center;
        line-clamp: 2;
        max-lines: 2;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      &.active {
        background-color: #727277;
        color: $text-color-base;
        font-weight: 500 !important;
        border-left: 7rpx solid $color-primary;
      }
    }
  }
}

.product-section {
  // flex: 1;
  height: calc(100vh - 250rpx);

  .wrapper {
    padding: 0 20rpx;
    padding-bottom: 130rpx;

    .ads1 {
      height: 150px;
      .image {
        height: 100%;
        width: 100%;
      }
    }
  }

  .products-list {
    margin-top: 12rpx;

    .category-name {
      padding: 30rpx 0;
      font-size: $font-size-base;
      color: $text-color-assist;
    }

    .products {
      display: flex;
      flex-direction: column;
      margin-bottom: $spacing-row-base;
    }

    .product {
      display: flex;
      align-items: center;
      margin-bottom: 40rpx;

      .image {
        width: 180rpx;
        height: 135rpx;
        flex-shrink: 0;
        border-radius: 10%;
      }

      .content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding-left: 20rpx;

        .name {
          width: 350upx;
          font-size: $font-size-medium;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          margin-bottom: 8rpx;
          color: #ffffff;
        }

        .labels {
          display: flex;
          font-size: 20rpx;
          margin-bottom: 8rpx;
          overflow: hidden;
          flex-wrap: wrap;
          .label {
            max-width: 40%;
            padding: 6rpx 10rpx;
            margin-right: 10rpx;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
        }

        .description {
          min-height: 32rpx;

          margin-bottom: 20rpx;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          overflow: hidden;
          color: $text-color-assist;
          font-size: $font-size-extra-sm;
        }

        .price {
          font-size: $font-size-extra-lg;
          color: #ffffff;
          font-weight: bold;
          display: flex;
          align-items: center;
          justify-content: space-between;
        }
      }
    }
  }
}

.cart-actions {
  display: flex;
  align-items: center;

  .add-btn,
  .minus-btn {
    width: 50rpx;
    height: 50rpx;
  }

  .number {
    width: 50rpx;
    height: 50rpx;
    margin: 0 20rpx;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: $font-size-extra-lg;
  }
}

.meng {
  background-color: #000000;
  position: fixed;
  top: 0;
  opacity: 0.6;
  width: 100%;
  height: 100%;
  z-index: 999;
  padding-top: 20px;
  .righ {
    display: flex;
    justify-content: flex-end;
    padding-right: 15px;
    img {
      width: 60px;
      height: 100px;
    }
  }
  .one {
    color: #fff;
    padding: 10px 0 10px 90px;
    display: flex;
    align-items: flex-end;
    .one-l {
      display: flex;
      flex-wrap: wrap;
      .one-l-01 {
        color: #0e0f11;
        background-color: #fff;
        width: 23px;
        height: 23px;
        text-align: center;
        line-height: 23px;
        border-radius: 50%;
        font-size: 18px;
        margin-top: 4px;
      }
      .one-l-02 {
        font-size: 16px;
        padding: 0 10px;
        line-height: 29px;
      }
      .one-l-03 {
        border: 1px solid #9ea0a4;
        border-radius: 3px;
        width: 32px;
        height: 29px;
        text-align: center;
        background-color: #17242e;
        line-height: 29px;
        font-weight: 600;
        img {
          width: 20px;
          height: 20px;
          margin-top: 5px;
        }
      }
      .one-l-04 {
        padding: 10px 0 0 32px;
        font-size: 16px;
        line-height: 29px;
      }
    }
    .one-r img {
      width: 60px;
      height: 100px;
    }
  }
}
